-
Notifications
You must be signed in to change notification settings - Fork 0
feat(vucm): add integration with NI-cDAQ #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @anataty, thanks for your PR!
To check if linters are satisfied please run make lint
locally.
28834b8
to
e6e43f4
Compare
1122fc1
to
dbc3f10
Compare
examples/vucm/ni-daq/script.py
Outdated
asyncio.create_task(self.handle_conn(conn, addr)) | ||
|
||
async def handle_conn(self, conn, addr): | ||
print(addr, "accept") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make this debugging info available in the Cloud you could use built-in logging capabilities via self.log
.
examples/vucm/ni-daq/script.py
Outdated
sock = self.socket | ||
while True: | ||
(conn, addr) = await asyncio.get_event_loop().sock_accept(sock) | ||
asyncio.create_task(self.handle_conn(conn, addr)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should a task fail, the exception will be lost as no one is supervising it. Using a task group solves the issue.
No description provided.